<?php

use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Admin\register\Registercontroller;
use App\Http\Controllers\admin\login\LoginController;


/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});

//wsg
include "wsg/web.php";
Route::middleware([\App\Http\Middleware\CheckToken::class])->group(function () {

});
include 'wzm/web.php';
//后台登录页面
Route::get('login',[LoginController::class,'loginAdmin']);
//后台登录
Route::post('dologin',[LoginController::class,'dologinAdmin']);
//后台注册页面
Route::get('register',[Registercontroller::class,'registerAdmin']);
//后台注册
Route::post('doregister',[Registercontroller::class,'doRegisterAdmin']);
//刘璇发送短信验证码
Route::get('getcode',[Registercontroller::class,'getCode']);
//后台退出登录
Route::get('loginout',[LoginController::class,'loginOut']);

//liuxuan
include 'lx/web.php';



include "fw/web.php";
